﻿<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>临时</title>
	<link rel="stylesheet" href="../css/css.css">
	<script type="text/javascript" src="../js/jquery-1.8.3.js"></script>
	<link type="text/css" rel="Stylesheet" href="../css/nmc.css" />
	<script type="text/javascript" src="../js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="../js/messagecenter.js"></script>
	<script type="text/javascript" src="../js/common.js"></script>
	<script type="text/javascript" src="../js/data5.js"></script>
	<script type="text/javascript" src="../js/canvas4.js"></script>
	<style type="text/css">
		.app_text{
			color:#04A0E9;
		}
		.page-split input{
			display:inline;
			margin:0px 4px;
		}

	</style>
	<script>
        window.onload = function() {
            var canvasData = {x:320 , y:52, width:Math.ceil(window.innerWidth-325), height:Math.ceil(window.innerHeight-152)};
            init_canvas(canvasData ,3,lineEvent1 , lineEvent2 ,lineEvent3,iconEvent4);//初始化
            addList();
            drawCircles();
        };
        function lineEvent1(){}
        function lineEvent2(){}
        function lineEvent3(){}
        function  iconEvent4(obj){
            alert("机箱");
            alert(JSON.stringify(obj));

        }
        /**加载数据*/
        function addList(){
            /*var url="all";
            var circlesData=[];
            params={};
            $.post(url,params,"JSON").done(function(data){
                if(data){
                    circlesData=data;
                }
            });
            */
            if(circlesData==null){
                return false;
            }
            for(var i=0;i<circlesData[0].data.length;i++){
                addCanvasLevel1(i+1,circlesData[0].data[i]);
                for(var j=0;j<circlesData[0].data[i].boards.length;j++){
                    addCanvasLevel2(i ,j, circlesData[0].data[i].boards[j]);
                    for(var k=0;k<circlesData[0].data[i].boards[j].cpus.length;k++){
                        addCanvasLevel3(i ,j , k,circlesData[0].data[i].boards[j].cpus[k]);
                    }
                }
            }

        }

	</script>
</head>
<body>
<div class="left_content">
	<div class="left_block1">
		<div class="left_logo"></div>
		<div class="left_title">品牌数据库编辑器，高效工作，人性化交互</div>
		<div class="left_icons">
			<div class="left_icon1"></div>
			<div class="left_icon2"></div>
			<div class="left_icon3"></div>
		</div>
	</div>
	<div class="left_block2">
		<div class="left_menu">拓扑文件库</div>
		<div class="left_menu">逻辑预案库</div>
		<div class="left_menu">部署库</div>
		<div class="left_menu">监控</div>
		<div class="left_menu">其他</div>
	</div>
	<div class="left_block3">
		<div class="left_title">快捷管理机箱、板卡、芯片，提高工作效率便捷查找功能相关物理和逻辑链接，高效编辑请登陆BDE账号</div>
		<button class="login">登录</button>
	</div>
</div>
<div class="right_content" >
	<form id="form1">
		<input type="hidden" id="curId" name="curId">
		<!-- 头部 -->
		<div class="top-bar">
			<button  class="b6" type="button" onclick="back();">返回</button>
		</div>

		<!-- 左侧 -->
		<div class="table-box">

		</div>

	</form>
</div>
</body>
<script type="text/javascript">

    function showView(){
        alert("全局预览");
        winddow.location.href="../html/physicalTopView.html";
    }


</script>
</html>
